package com.example.gulimallproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.common.utils.PageUtils;
import com.example.common.utils.R;
import com.example.gulimallproduct.entity.AttrAttrgroupRelationEntity;
import com.example.gulimallproduct.entity.AttrGroupEntity;
import com.example.gulimallproduct.request.AttrAttrGroupRelationRequest;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author zzl
 * @email zzl@gmail.com
 * @date 2025-10-24 15:22:38
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    R selectPage(Map<String, Object> page, Long catId);

    R getInfoById(Long attrGroupId);

    R attrNoRelation(Map<String, Object> params, Long attrGroupId);

    R attrRelation(Long attrGroupId);

    R SaveRelation(List<AttrAttrGroupRelationRequest> list);

    R delRelation(List<AttrAttrGroupRelationRequest> list);

    R getAttrGroupWithAttrs(Long catelogId);
}

